package san;

public class GuanYu {

    private String name="关羽";
    //声明青龙偃月刀属性,因为战斗时需要使用,默认是null
    private DragonBlade blade;

    //战斗方法
    public void fight(){
        System.out.println(name+"使用"+blade+"战斗");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DragonBlade getBlade() {
        return blade;
    }

    public void setBlade(DragonBlade blade) {
        this.blade = blade;
    }
}
